<?php

/**
 * Created by PhpStorm.
 * User: wukent
 * Date: 2017/9/25
 * Time: 下午2:59
 */
class UserInfoAction extends ApiAction
{

    protected $mainMod;
    protected function _initialize() {
        parent::_initialize();
        $this->mainMod = D("Users");
    }

    public function getbase(){


        if ($this->uid > 0){
            $pitch = $this->mainMod->getInfo($this->uid);
            $this->rest($pitch,1);
        }else{
            $this->rest('',18);
        }


    }

}